package com.myapp.imp.war.msg;

import java.io.IOException;

import com.myapp.imp.war.logical.CGLifebloodUpdateLogical;
import com.myapp.msg.ann.MsgDefine;
import com.myapp.msg.base.BaseMsg;
import com.myapp.msg.type.MsgPermission;


/**
 * 文件名：CGLifebloodUpdateMsg.java
 * <p>
 * 功能：玩家血变化
 * <p>
 * 版本：1.0.0
 * <p>
 * 作者：Builderd by AppTools
 * <p>
 */
@MsgDefine(id = 10305, name = "CGLifebloodUpdate", permission = MsgPermission.AUTHORIZE, logicalClass = CGLifebloodUpdateLogical.class)
public class CGLifebloodUpdateMsg extends BaseMsg {

	public CGLifebloodUpdateMsg(){
	}

	//血的变化，负数为减，正数为加
	private int value = 0;
			
	//血的变化，负数为减，正数为加的get方法
	public int getValue() {
		return value;
	}

	//血的变化，负数为减，正数为加的set方法
	public void setValue(int value) {
		this.value = value;
	}
	
	@Override
	public void read() throws IOException {
		//读取Field
		//读取血的变化，负数为减，正数为加
		this.setValue(this.readInt());
		
		//读取Bean
	}
	
	@Override
	public void write() throws IOException {
		//写入血的变化，负数为减，正数为加
		this.writeInt(this.getValue());
		
	}
}
